Rooted is a class with a finalizer
Handle both value and object roots