Don't compare record values

changeset 8e8f1a801098 introduced a equality comparison of records without id
using the values.  This prevents to store in a dictonary different instances
having by chance the same values.  So it seems better to consider only as equal
the same instances without id.

issue4306
review10621002