Refactor ec_add with out_precomp_t1 parameter and update tests