make arrayCopy work with more than just typed arrays