Fix foreach for objects that implement iterator interface

Signed-off-by: Peter Legierski <peter@legierski.net>
Bump version to 1.5.2

Signed-off-by: Peter Legierski <peter@legierski.net>
Merge branch 'hotfix-replace'