make compiler generate two future states and repl install correct one

because the next compiler state depends on whether an exception was
raised or not.