I see this wouldn't apply cleanly anymore, due to recent x32 patches. I put the code on the branch pmachata/iterators, for those interested. Thanks, Petr