Handle toObject in updateAttributes

Since one can call updateAttributes with any kind of properties (as
opposed to save, which uses toObject internally), any objects that
correspond to toObject should be handled as such. This is particularly
the case with List objects, as used by embedsMany.
Merge pull request #221 from fabien/fix/updateAttributes

Handle toObject in updateAttributes