The index arrays are always created with NPY_INTP, but C++ to_coo interprets them as single_index_type. This will likely crash if the indices are actually 32-bit.
Needs to be considered together with #4 (if indices are always 64 bit, this is not a bug) and #11.