[backport] transformers no longer ignore UnApply.fun

Backports 7122560063 from the 2.11.x branch