rgc: check in a template gc