add xByteArray and xBytes, fixed xCompareFunc