Standalone REPL printing fixes

This fixes #141, #143, and a missing-newline problem when using `--color` in standalone mode.