fix(templates): reject unknown fields when loading JSON templates (#7453)