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

Also did `int` -> `bool` while I was in there.