Fix Sparse_matrix_Finish_filling to not steal last element