fix issue 10552 and 10553 - enums and access specifiers

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