sl/cont_shape_seq: implement expandShapeSequence()