docs: def rebase_array(d, recursive=False):
      """Transform an indexed dictionary (such as those returned by the dzn2dict
      function when parsing arrays) into an multi-dimensional list.
  
      Parameters
      ----------
      d : dict
          The indexed dictionary to convert.
      bool : recursive
          Whether to rebase the array recursively.
  
      Returns
      -------
      list
          A multi-dimensional list.
      """
      arr = []
      min_val, max_val = _extremes(d.keys())
      for idx in range(min_val, max_val + 1):
          v = d[idx]
          if recursive and _is_dict(v):
              v = rebase_array(v)
          arr.append(v)
      return arr