target: add support for 64bit data in mem2array and array2mem