Adds the T() for templated complex strings

Takes care of adding map[string]interface{}{...} for templated string
parameters

[#71160248]
Taking care of corner tests cases

[#71160248]
Taking care of nesting templated strings

[#71160248]