Added support for named filters in top-level filter

Closes #3097