Move AggregateDeclaration's access checking methods into free functions in access.c
Merge pull request #3281 from yebblies/access

[DDMD] [refactor] Move AggregateDeclaration's access checking methods into free functions in access.c