[FLINK-1311] [optimizer] Correctly tag static/dynamic path for auxiliary nodes in iterations.