Clarify and remove some comments.
Add some more subpattern reference tests.

These were taken from PCRE's file testdata/testinput2 with slight
modifications.