Fix a variety of parser errors.
Start work on OpenDDL reference resolution in python parser.