Better repl stack logging

The stack contexts are logged better (as in IDE debugger) when in repl or cli test runner.