fix a bug in asGen.cpp fun: unfold_enum()