Adding a few more DistMatrix member functions to the C interface, adding safety checks for dynamic_cast, and fixing an inconsistency in the C example.