SbeTool generates uncompilable C# code in some cases

Optional fields, and enums in lowercase will generate code that doesn't compile