fix proxy construction

This patch makes `value` in the proxy-construction-code local because otherwise it gets updated each for-iteration and causes all the proxies to call the same command (`ZUNIONSTORE`).