fixing type duplication during  type hierarchy creation
fixing type duplication during  type hierarchy creation
addressing codereviews
Merge pull request #76 from onefinestay/fix-type-creation

fixing type duplication during type hierarchy creation