Fixes Issue 9368 - Final switch on typedef'ed enum is not properly checked