Fixes and additions of equals and hashcodes
More equals, hashcode and some other fixes
Bugfixes with hashcode, changed to IdentityHashMap instead of Hashmap
Merge