I can change this, but RawMatrix is a private class in this context, i.e. it's not going to be exposed to the user, so I don't see how this can fail (unless SymPy does some magic I'm not aware of).