I know that matrix inversion was deliberately left out of the fortan built in functions
GLSL includes an inverse for fixed-sized (2,3,4) matrices, which can return NaNs for ill-conditioned inputs. But it's fine for inverting transformation matrices.
The Euclidean norm norm2() should also work as expected as well.