Decompose rational function with repeated linear factors (#565)