fix specs to account for 1.8/1.9 differences in Array#to_s

in Ruby 1.8 Array#to_s is basically an alias for #join, but in 1.9 it changed
to an alias for #inspect.