core: Fix -Wswitch warnings by including all enum values in switch No change in behaviour. References #1426