Various fixes to sync Lua scripting with recent updates