Backtrack correctly into subpattern references.

This enables correct matching for calls such as:

  (ppcre:scan "(?1)(o(?1)?)" "oo")