Use unchecked for GetHashCode
Fix, create a new key instance defore adding to the entitySpecsWritten set