Fix #3059, wrong dtype for sliced sparse matrices