[C++] Make PyMatrixType a singleton to avoid multiple instantiactions to avoid dynamic linking errors