SI-6855: REPL emits error on partial pastie

If pasted code is interpreted with an incomplete result,
attempt to compile it to display an error.

Unfancily, the code is wrapped in an object for compilation.
Merge pull request #2672 from som-snytt/issue/6855-repl-pasted-brace

SI-6855: REPL emits error on partial pastie