Fixes RT#90665 fixes enum warnings due to Moose update

This fixes RT#90665: warnings produced by enum warnings

See https://rt.cpan.org/Ticket/Display.html?id=90665