com.romix.scala.serialization.kryo
Given Class clazz, this recursively walks up the reflection tree and collects all of its ancestors, so we can check whether any of them are registered.