Add support for recursive template fields.