Added `filter_non_type_arguments` to utils.