Ignore constant cofactors in long-trends

Workaround for #389.