Pass metadata to REPL onFailure.

Show transcoding if the error is an evaluation error.

Fixes #1373
Actually, why are we hiding the errorElement here?