Get rid of unused INSIDE-SUBPATTERN-REFERENCE variable.
Only compute INNER-MATCHER-WITHOUT-NEXT-FN when it's needed.

It's actually not clear that this is faster, though it probably is.