More work on C interfaces to Matrix and DistMatrix.