Refactor to silence warnings.

These switch statements are exhaustive, and it's not clear where to
put the "assert(false)" that indicates that fact. With GCC and Clang,
it seems very slightly preferable (in terms of efficiency and lack of
false-positive compiler warnings) to use a default case like this.

No change in behavior.