Templates: Make `flat_settings` true by default in the templates APIs for backward compatibility.

Relates to #6671