Using hash table instead of list for typenames