TST: sparse: add regression test for sparse matrix typemaps

(cherry picked from commit b8cac41415b64c472cdbcfb8f6adc2f745393974)
BUG: sparse: fix omitted types in sparsetools typemaps

Fixes gh-3780

(cherry picked from commit 816638f815a36a8ddde4fe448967bca3111a3c3e)

Conflicts:
	scipy/sparse/sparsetools/sparsetools.cxx