Passed an array ref to enum