a global attribute whose type is an enum. Turns out this case fails because of an oversight in ncgen. This pr fixes that problem (in semantics.c). Also added test case .cdl file: tst_gattenum.cdl