3861: Change the default latex matrix type

Fix the latex printing of 'array' and change the default latex matrix type to use 'smallmatrix' for mode='inline', use 'array' otherwise.

http://code.google.com/p/sympy/issues/detail?id=3861