Add dictionary support to Template formatter. Resolves #27.