fix repl output:  expression history, result and environment value printing