Corrected type of array size to npy_intp