Issue 10528 - Private constant (enum) properties not private

https://issues.dlang.org/show_bug.cgi?id=10528

Call `accessCheck` in some places.