More SparkR fixes.