Add `compareSize`.
simplified compareLengthI with compareSize