Fix: foreachHostWithRole() now iterates correctly, works with fromXXX() modules too