3861: Change the default latex matrix type.

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