Improve Repeat#submatch