Handle merging arbitrary arrays of things

Don't assume that arrays will always contain mongoose objects, instead
test for toObject method and if it's not there just compare the two
objects normally.