Fixes RT#90686 Moose enum warnings