Fix Ruby 2.0 compatibility issue

Array#to_h isn't supported in 2.0. Travis builds were failing as a result