Added generation of module for enum types