use extend rather than merge

merge is for array-like objects and adds a length property which is
undefined in this case.
Merge pull request #64 from neonstalwart/merge-extend

use extend rather than merge