add copy function for IndexScanIterator:remaining_block, finish the
index serialization.