fix issue 10113 - Can't use an enum : string in a switch statement

http://d.puremagic.com/issues/show_bug.cgi?id=10113