nir: add support for removing redundant stores to copy prop var