Adding Constant class and ProductionReference as a superclass of TermCons

This allows for better error reporting in the new parser when having ambiguities.
It will also allow for more simple disambiguation filters.

@dwightguth please review. We talked about this change a while back, and now I got to it.
Basically now the new parser outputs only two types of objects: TermCons and Constant, bot having a reference to the production from which they come from.
Okay. This is technically correct I believe if sort and value are non null. But if want them to be non-null then you need to throw a NullPointerException from the constructor if you try to construct with null arguments.