Lua: printing nested tables without recursion.