Add save/restore support to WiredTiger iterators and indexes