avoid calling delegates even in outer cycles, branch early, statically
Merge pull request #1734 from blackwhale/no-indirect

Tiny optimization for std.regex