Implement instance variable "templates" for config objects.

Refs #5884