Allow BigInt as the right operand of SmallInt::compare()