Bugfix/merge arraylike

Adding tests for and fixing the merging of arraylike values. Fixes issue #50