Add a testcase for the recent "handle variable vector insert elt in mem" patch