Updated Matrix::sparse, #982