Introduce LogicalPlan.mapExpressions
Correctly consider identifiers introduced by outer list comprehensions when planning pattern predicates
Use contexts with correctly adjusted QGCardinalityInput in planWithTail
Introduce ScopeExpression to cleanly separate which expressions get evaluated in what scope
Merge pull request #3480 from boggle/no-clowns

Correctly consider identifiers introduced by outer list comprehension when planning pattern predicates