BUG: np.insert must copy index array

Otherwise it would do in-place changes to it. Fixes gh-3279.