TG checks through for stop overs less than 24 hours. Sometimes you have to insist and even call for the supervisor, but so far they always did for me.
You do not need to tell them that you leave transit area and you should ask for all 3 boarding passes