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

Use 'smallmatrix' for mode='inline', use 'array' otherwise.
Determine the default latex matrix type according to size.
Merge pull request #2195 from jrioux/printing

3861: Change the default latex matrix type