Add generation of enum type classes.