Moose enum fixes

Moose 2.1100 deprecates the non-arrayref form of enum.
Merge remote-tracking branch 'origin/pr/33'

Fixed for enums in recent versions of Moose.