improves hash function for DBPFTGI
reorders exemplar/cohort as well as text-based types in DBPFType hierarchy in order to reduce duplication of code.
Also delegates responsibility of creating types from DirectDBPFEntry to DBPFType.Type, thereby moving DBPFType into the main package.