Fix 2295. Regexp.union [] gives wrong result in ruby 1.8 mode