Handle recursive templates in composite columns