Fixed typos and scan_ops in debugmode.
Did the Fred's changes.
Added the loop over scan_ops.
Fixed the output print of scan.
Added the initial scan op to the list as well.
Fixed the compiled function print.
fixed the test.
Fixed the printing.
Added blank lines seperating inner graphs of scan.
fixed the newlines.
Apply node should be a scan op.
removed the assert.
removed the conditions.
Merge pull request #2154 from caglar/scan_debugprint

WIP: Fixed #2079