slight optimization to PyArray copy for 1-dimensional arrays