Generic compare that crash at runtime

Replying to myself: Just found that this has been answered already by gasche here: Removing polymorphic compare from Core - #12 by gasche