Add default callback for CollectionTrait::filter().

Implements changes for #3128