Fixed equals and hash code for Method/Field data.