The best I can do is
```
{ stableTypeFor(tree) map (tree setType _) ; tree }
```
which is not attractive. (Your proposal indicates you should reexamine the types.)