sequences: fix uses of set-nth-unsafe.