Sink a typedef and comparator down to the function that actually uses them.