Implemented CreateArrayRept.