ensure recursive merge respects overwriteArrays argument