This branch fixes some long-standing leaks in the regular-expression generation code.
FYI, this branch now includes a bug-fix for topic/vern/pattern-ops.
This is awesome, thanks.