Lua based table printing funciton similar to the PHP print_r function