Fix codegen of enum types specified as lowercase in XML