Fix lists of lists or dicts for from_dict