Made temporary iterators into unique_ptrs for IndexedSamIterator and IndexedVariantIterator