Fix the memcpy size

GPU memcpy size should be array size multiplied with element type size.