Fixes RT#90695 Moose enum warnings