optimize listInstance#alignWith. remove code duplication
update GenTypeClass