Fix problem with error messages when a restricted input format is required.  Make sure constants display their TeX forms correctly.  Force the constant i into the given context so that it produces the proper class when evaluated.