core: restore simple for-each loop over iterable object