Fix array handling for caching
Previously, merging handled added arrays incorrectly. If an array from the changes did not exist in the cached entity, an empty object was created for the property.
Previously, merging handled added arrays incorrectly. If an array from the changes did not exist in the cached entity, an empty object was created for the property.