Make parameters for mergeObjecs() more specific.

and add a comment clarifying the creation of arrays in the destination object.