Fix problem with Context not being called as a function, and make sure MathObjects are loaded.  Fixs bugzilla 3060, and Geoff's issue from pull #101.
Merge pull request #103 from dpvc/patch-PGML

PGML patch