Looks up a type within the type registry.
The object to look up
The TypeId registered for the type, or TypeId.nil if it wasn't found.
See Implementation
Looks up a type within the type registry.