[SPARKR-94] Add a  method to get an element of a pair RDD object by key.

Same here as well. `function(x) { x[[2]] }`