Fix unpack_ternary decoding for signed int8 packed tensors (#23391)