Fixed incorrect merging algorithm; did not deep-clone when merging into empty object
Added tests for mergeObjects;
Fixed exception when add[p] or origin[p] was falsy
Merge pull request #370 from ThomasR/master

Fix for util.mergeObjects({}, foo);