Generate better derived code for Eq