Handle recursion in Array#to_s.