add macro calls handling to variable text builder
initial macro substitution awareness for unused variable inspection

foreign leaf variable references are not resolved (added failing test for it)