Work around PETSc expecting a 2D array for matrix data

[Tracker item 3514](https://tracker.physiomeproject.org/show_bug.cgi?id=3514)

In distributed_matrix_data_restore, PETSc expects a 2D array of matrix data, even for sparse matrices.