Add a comparison function for Wcsprm objects.

DO NOT MERGE.

This is a first pass at resolving #2330.