The Data.AVL module of the standard library is parametrized by the value type (among other things):
module Data.AVL
{k v ℓ}
{Key : Set k} (Value : Key → Set v)
{_<_ : Rel Key ℓ}
(isStrictTotalOrder : IsStrictTotalOrder _≡_ _<_)
which of course means the map function it exports can't change the value type:
map : ({k : Key} → Value k → Value k) → Tree → Tree
Is there a way still to transform values stored in a Tree in a non-endomorphic way?