Added custom hashing method __treedict_hash__ that overrides a default hash on an object.