Ats filtering: simplify visitor and add unfolding capability

@anpete updates the ATS filtering tree expression to match changes in relational query pipeline.