Optimized generated Code

Removed double code in getParseTime and getDisambiguationTimeCude by
introducing a boolean parameter, fixes problem with null left by using
InvokeState for DisambiguationTime