Added class lineage for types

https://github.com/kfgodel/diamond/issues/42