Different handling of .to_s method in ruby 1.9 for one-element array