Improved logging in AggregateASTVisitor.

When logging faulty or badly behaved visitors, added the name of the file that caused the messages to be logged.