Fix folding of WorkflowBuilders in `filter`.
Generate $where Selectors later.

This catches more failues in the sources, although the code is a bit
more complicated.