supporting dot/bracket notation in nested template references