multi resolve for variable references, initial for #198 (Rework resolve for variables)
bug?
fix #198: multi target resolve for variables
Merge branch 'new-variable-resolve'