Now that types registry is a service, it needs to be wired all over the place, particularly in unit tests.