PROV-929 fix indexing when adding to set with new not-so-slow code