Added flag to dump template source -- useful for some debug tasks

Change-Id: I008d525a78e9003551557b946d41539bb3d5bc90