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