3785: rework multiplicity and handling in log
Merge pull request #2055 from smichr/3785

3785: fix multiplicity handling and log of Rationals