Move the Type* functions into the Rtti* functionality to make deriving easier.