Better error reporting.
Further fixes to make BEGIN blocks work/compile.