Construction of alreadyVisitedMethods moved back into BaseVisitor.