config: use the right API to access template access
Preventing direct access to the underlying dict will help a coming refactoring
of `config`.
Differential Revision: https://phab.mercurial-scm.org/D9922
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.