TST: fix test failures on 32-bit platforms due to np.intc != np.int32

To clarify: both are 32-bit integers but they don't compare equal.
Merge pull request #3478 from rgommers/sparse-failures

TST: fix test failures on 32-bit platforms due to np.intc != np.int32