Make the comparison between 'Relation' and 'AssociationRelation'
consistent.
Ensure that the comparison between 'CollectionProxy' and 'AssociationRelation' is consistent.