3861: Fix the latex printing of 'array'.
3861: Change the default latex matrix type.

Use 'smallmatrix' for mode='inline', use 'array' otherwise.