Fixed access check logic for declarations to allow non-public declarations in C#.

Checking for the GenerateAbstractImpls option is flawed since they are not entirely related.
Minor formatting fixes.