Hunting memory leak during batch refactorings

Ensured CommentsRefactoring clears the list of visited comments when visit ends.