Record hashcodes on the parent not the children

No longer saving associations onto the attribute hash.
Record hashes of loaded associations and compare during serialization to
know if we need to update entries in association hash.