Use npy_intp for the number and size of dimensions when passing to Numpy.  This ensures the values are the correct size on both 32-bit and 64-bit platforms.