Fix Ruby 1.8.x compatibility

instance_methods returns an array of symbols in Ruby 1.9+
but before that it was an array of strings.