add support for indexed-repeat, closes #36