dims are generated from range in gen-array