return obj from merge to allow chaining

I suspect this solves my earlier issue. It worked with my simple test case.