Optional groups at the start of a query match correctly
- What was broken
- A query starting with an optional or repeated group of several steps returned the wrong results or missed matches.
- What I changed
- The query engine now works out where such a group ends correctly.
- Why it matters
- Queries return the same results wherever the group sits.