Implement for-of loop.