Experiments with Lua pattern matching and Lua error reporting fix.