Unify .not and .filter (resolves #4200).