Moved ScriptStat to Lua managed memory