to_dict, to_odict
special scalar cases