Fixing dirty field tracking of mutable values

When using a model field which allows mutable values (such as JSONField), dirty field tracking won't work without at least a shallow copy of the object.