gen_c: a*x + a*y → a * (x + y)

No difference in speed
gen_c: merge scaling into the other constants