Recover from errors in repl
Handle import line in REPL better
Make sure all imports are unique