Fixes RT#90679 Moose enum warnings