Handle undefined dim in assign_dim_helper Not only the value can be undefined here, but the offset as well.