Fix for #1804

This is a fix for #1804. Now a copy of the larger array is made, before adding the smaller in the given slice.
I've added tests to assure that the original kernel arrays aren't changed. The order of the addition operation
is also checked.