Implement new gims-filter directive in gims-relation directive #3029