Support userdata in doTeleportThing

mark changed some things , and i came here to share.