Get declarations parsing properly. The definition parser needs to be
the last option.
Export boundVars function, which is currently reeded to generate JS.
Be more flexible with the position of the closing bracket of a record type.