Minor tweaks to SparkR.