Fix #6247  Too many constants for nth-order linear ode

- use a complex-conjugate accounting to avoid adding extra constants
- resolve #6247
- resolve #7081