TeXMath writer: Avoid pmatrix* etc.

They require the mathtools package.  Instead, use regular
array environment when we don't have all centered columns.
Updated tests for d*dot changes.