Cleanup unknown line opcode printing and add set_discriminator check