Adds support for OrderedDicts in jinja templates.

This request adds support for OrderedDict in jinja templates. We found this useful when templating some types of config files in formulas.