Add support for writing TIFF as a debug file format.

Change separator for unique name counter from '.' to '#'
Merge branch 'master' of https://github.com/halide/Halide