Move away from Root::deref.

This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.