Add debug info for enums.

Previously enums were reduced to the underlying type.
Now the symbolic constants can be used.