Copy template root parameters and variables so template inheritance does not dump them all in the root template match.