add support for deep-nested var references