TST: sparse: catch right error type

Numpy had a bug that caused a wrong error come up here; catch the right
one.
BUG: sparse: fix dtype casting in dok_matrix __add__ and __truediv__
Merge pull request #2916 from pv/ufunc-fix

BUG: sparse: minor bugfixes