Ensure Enum.to_list and Dict.to_list return the same results for dicts