improve use of lua hash table

correctly map addresses to opcodes. bug: need to prevent garbage
collection of addr_to_opcode object.