Updated TraitInfo.getType()