Fixed all but enumerations as far as errors in the generated classes.