Add support for -fmtproc and -nofmtproc switches to repl.