Create a generator to yield references to matching subexpressions within the original structure (for in-place modifications).