Allows comparing `secp256k1_pubkey` and `secp256k1_xonly_pubkey` respectively, to establish an order between them.
This is a backport of [[ https://github.com/bitcoin-core/secp256k1/pull/850 | secp256k1#850 ]] and [[ https://github.com/bitcoin-core/secp256k1/pull/926 | secp256k1#926 ]].
We need this for porting `rust-secp256k1` to the secp256k1 library of this repo.