[enh] Issue 10818 - Allow parameterized enum declaration

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