Model: diff check clones non-raw objects and arrays

Should only clone objects if they are raw Objects and not instanceof other
functions.