Fix issue with wrong or missing classnames when using a enum value as default value

This will fix issue #11