[WIP] insert variable disposal instructions in the IR

This should help fix #578
Should these two comments be removed?