Optimize EQUALP on structures with raw slots.