Implement Enum.to_list, closes #977