Curve: remove X9ECParams and circular dependency