For enums mark them as data classes.

This is probably not the best solution, it should be determined earlier in the process.
Make sure typedef's are always data classes.

The solution implemented is probably not the best solution to handle this case, it probably should be handled earlier in the process.