Remove extra doubles from ec_mul_gen