Add a helper for testing equality.
Use that helper to define tests for equality of _EllipticCurve instances.
Cache the _EllipticCurve instances so the inherited-from-object equality does what we want.
Directly test that curves work well as set elements.