Fixes RT#90682 Moose enum warnings