Reimplemented `rootForType`