transforms/remove_inter_assigns: fix bug with array assignment