Fixed a few more bugs in the region parser, but bugs still persist because of how the template compiler works (it doesn't handle well just portions of a template file.. one possible fix is to reparse the whole file every time, but that's very hacky)
Added "batch source validation" (aka as-you-type error reporting) for scala code.