ByteArray: Remove some dead comparisons