fix issue 2407 - function pointer as an enum's base type doesn't work

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