Expand test suite for triangular matrices and adjust triangular code accordingly.