fix numeric flags.
add test. based on mruby-hs-regexp.