ERR: leftover from renaming outtype to orient in to_dict