refactored Transformer handling of KSequence and KList