Fix to member equality avoiding return type and field type

https://github.com/kfgodel/diamond/issues/132
Merge pull request #136 from kfgodel/132-member_equality

Fix to member equality avoiding return type and field type