This commit turns on full template type checking and fixes the examples that had errors. PR Close #40930
PR Close #38903