Adaptive reslice iterator bug fix and slight optimization.