Fix issue where codegen would attempt to create enum classes for
primitive types (e.g. strings) that had allowableValues specified in
annotation.