Use IdentityDict in TypeLookup