Fix use of enum for new Moose p2