text_transfer: add support for REPL apiv2.
OCaml: don't raise on traceback-less writes (required for soft-quit).