Fix Scala REPL issues:

- Unicode literal issues.
- Slowness due to workunit output capturing.
- Rearranged the imports correctly.
- Removed an unneeded import.