Only register types on creating the first entity manager

Doctrine throws exception if we try to re-register types, so only
register types that aren't already registered.