Fix sync endpoint to do the right casts when using halfvec
encoding, fix sync script to use the right endpoint and do approximate floating point equality in checks
encoding, fix sync script to use the right endpoint and do approximate floating point equality in checks