Fix support for #merge accepting either one object, multiple objects, or an array of objects.
Refactor merge tests to verify all three passing styles.