resolve references in configuration

config:

a: 1
b: 2
c: a=${a} and b=${b}

result:

cfg["c"] == "a=1 and b=2"