fix: encodeVectorHash used some undefined references - data.length and data[i]
Fix encodeVectorHash issue found when using it in Kiwi - data.length and data[i] are both undefined.
Fix encodeVectorHash issue found when using it in Kiwi - data.length and data[i] are both undefined.