Allow foreach in objects