Make case statements Ruby 1.9 proof
Remove all calls to Enumerable#first

Ancient Ruby didn't have .first.