Fix handling of second argument of Regexp.new.

I think that second argument of Regexp.new should be Integer according to ISO spec.