fix REPL scoping and _; fixes jashkenas/coffee-script#1829