fix issue 3096 - EnumBaseType

http://d.puremagic.com/issues/show_bug.cgi?id=3096