test: cleanup test_luac.lua error handling and -s option
parser: fix for control variables containing lambda
parser: fix 'end' terminates statement.