Add recursive toTable in Lua