Preserve interator state on getSize