add iterator for Array and make Array can be used in range-based loop