trees: fixes on root insertion