Implement 'scan_table' opcode
Fix a couple of bugs