Add test for parametrized productions.
Add documentation for parametrized production.
Fix various issues in the reference parser, particularly if they directly refer to each other.
Adapt the JSON grammar to use the new grammar definition infrastructre.