Fixes Issue 8807 - Better diagnostic for literals in case statements.