Fixes RT#90671 Moose enum warnings