Added optional output of template origins in the templight traces.