Refactor Arr.insertArray(), related to issue 6241