Test dtype preservation in sparse matrix slicing
Addition to issue #3059