sumprod works (on trees only, unvectorized)