TEZ-1424. Fixes to DAG text representation in debug mode  (Rajesh Balamohan)
(Cherry picked from commit 2266cccf9290601662944bdfa17ef5a2e96e9371)