Fix more errors.

Major issues remaining:

Literal parsing errors
IFDEFS for records
Explicitly capture 'this' in lambdas inside of triggers
Set-up new dispatchers