Fixes #2627, latex printing of Indexed and IndexedBase.
Merge pull request #2742 from bjodah/latex_printing_of_indexed

Fixes #2627, latex printing of Indexed and IndexedBase.