Ensure type filtering works on folds