Fix creation of input variable proxies for merge nodes