move matrix type enum out of GLmatrix struct