Use np.intp rather than ssize_t for ndarrays