Pass metadata to REPL onFailure.

Show transcoding if the error is an evaluation error.

Fixes #1373