Support recursive queries

This is part of PLIP 1356 for 'old new-style' archetypes collections: https://dev.plone.org/ticket/13561