Update doctests with new Matrix printing

I skipped the agca doctests, because the string printer needs to be updated
(it looks silly now), and the mechanics Sphinx doctests, because I think they
really want to be using pretty printing (to get g' instead of Derivative(g(t),
t)).

I haven't yet touched the regular tests.