[BZ-1040032] set tuple memory when copying the content of a TupleList
(cherry picked from commit a7162dfd3d204209d7fa10980fb1407ca5804537)