Add lookup_trap, finish removing trap indices
Fix some misuse of trap functions, allowing runes of protection to actually work