optimize: we should pre-allocate n + 1 elements in the result table for ngx.re.match because we makes use of the 0 index. this gives 80% speedup for ngx.re.match when no submatch captures are used. thanks Mike Pall for the catch.