Ensure correct category is used to define a class
Test for trying to set a different category when compiling a parser class: solution to that is breaking the code.
Reverting defineClass change. Needs to trace what it does.