DocCommentOptimizer - fixed doOptimize()'s foreach loop