factors in sums are now merged at compile time when they consider the same hidden variables; fixes #71