This could look even better, right? Something like `stableTypeFor(tree).map(_ setType tp)`.