Fix Lua stack index in LuaSerializer::pickle

#2073