Build an Array from an iterator