Improve PreTeX Editor Module plugin

* Add PretexArray and PretexVariant classes
* Improve LexicalAnalyzer