[identity_map] merge_or_insert should create the model and then merge.
[model] to_hash should clone the hash to avoid infinite loop encodings.