Minor fixes to make module work with newer Moose

More recent versions of Moose have deprecated enum defined with an array, it must be an ARRAYREF.