Handle Teleportitis better in ascension script

Also minor simplifications in internal core Lua module