[AutoDiff] Remap `apply` callee type in derivative context. (#27590)
Previously, `LinearMapInfo::addLinearMapToStruct` did not remap `apply` callee
type in derivative context.
Now, remapping is done. Remapping is significant when the derivative has a
more constrained generic signature.
Resolves TF-817.