SolidMatrix.h: Reformat
Avoid unnecessary uses of typeid

typeid produces annoying missing typeinfo linker errors unless entire
classes are exported.