Fix Issue 2950 - Allow switch on enum of string base type.