[polyml] ArraySlice.copy is inefficient