Fixed incorrect merging algorithm; did not deep-clone when merging into empty object