Fix to_a since it is no longer in Ruby 2+
Merge pull request #121 from dblessing/fix_to_a

Fix to_a since it is no longer in Ruby 2+