"EC_POINT_invert" was checking "dbl" function pointer instead of "invert".