Fixes RT#90677 Moose enum warnings