Implement Enum.to_list, closes #977
Merge pull request #979 from meh/enum-to_list

Implement Enum.to_list, closes #977