Add missing default cases to switches

This is required in D - we should do this in the compiler.  Part of my dmd to D conversion project.