type_descriptor: optimize & simplify constructors, fix some corner cases
type_descriptor: optimize & simplify constructors, fix some corner cases

uentity/blue-sky-re,uentity/blue-sky-re,uentity/blue-sky-re