add basic support for repeat in cs-gen-HSequential