Support the fancy select function for hashes in ruby 1.8.7