implement string.format()
fix LuaScriptController: display full traceback on error
fix mode checking in CheckMode() function