prove cheat for unlabelled_repl_fun, tweak definitions

simple_main_loop and unrolled_main_loop need to assert code_labels_ok
earlier than previously defined. It makes a difference now because the
initial bytecode state contains code. This assertion goes away when we
pass to unlabelled_main_loop, so moving it doesn't matter.