Support future parser loop local scope variables

Adds support for future parser loop local scope blocks that define variables
to the variable_scope check.

Closes #264
Closes #258
Closes #249

/cc #271