core: Fix -Wswitch warnings by including all enum values in switch

No change in behaviour.

References #1426
2 files changed