ob-R.el: Improve the capturing of output-type results in sessions.