[compat] Deprecate any() and all() (related to #264017) [applied]