3722: more advanced re/im support
rework real/imag processing; remove dup symbols
Merge pull request #2178 from smichr/solve

3722: more advanced re/im support