Fixes RT#90688 Moose enum warnings