WIP: safe enum type
Merge pull request #1 from evilrix/wip

WIP: safe enum type