Merge and toArray should both be called with the same $deep param

Merge() is called with deep=false, so toArray() can (and should) also be called with $deep=false. This was resulting in some weird behaviour in our codebase (records not being saved properly).