BUG: sparse/_csparsetools: work around dtype equality bugs in earlier numpy versions