PARSER: add unique index to generated id in doseq, to avoid name-clashing when
nested.