Parser bugfixes

Some bugfixes. Now all grammar and parser doctests pass: parse, grammar, grammartestsuites, featgram, featstruct