fixed wrapper iterator

Wrapper iterator lacked proper inner iterator deletion and was missing export
tag.