add API for getting leaf types members
refactor of SType and STypeInfO