dims are generated from seq in gen-array