Decompose with repeated linear factors (#319)