Address an error message about enums

"Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref."