support for PIDs in rawval_to_lua_stack