Added support for named filters/queries inside nested filters.