Add support of array to host memcpy functions