Fix REPL/debugger interaction.

When you wrote one line in the debugger REPL, than a second that used
something in the first, things got messed up. This fixes it.