Fix case statements to run on Ruby 1.9.