Fix #8616. Check that input matrix is square in Triangular and a test.

Let linalg error messages start with small letters.