Fix to_a since it is no longer in Ruby 2+

We're using Ruby 2.0 and `to_a` no longer works. Use `Array('string')` instead.