Correctly skip type sugar when determining the width of an enum type. Derived
from a patch by Justin Bogner.