Move vex::bytes function into SpMat class

Nobody uses the function except for the class.
refs #42
Simplify ostream::operator<<(cl::Error) implementation
Move type-related functionality into types.hpp

refs #42