It works after hard refactored templating. Sequence and oth. structs should be generalized to make possible build it on struct_factory with nodes geq 2