Optimize NQP code blocks inside regexes.

Before, we just did away with various kinds of optimization if we
saw this. Now we can flatten various blocks away and apply other
kinds of lowering optimizations.