Add name resolution for type definitions