math/matrix: Export rows/columns as constants

* We don't need functions for returning the row/column count for a given
  matrix; a constant is sufficient
+ Export the matrix's scalar type