Fixes RT#90670 Moose enum warnings