TeXMath writer: Fixed Barray.
Updated some array and matrix tests.