additional extensions to the ranged sequence templates; use said templates in parts of the basic polytope code