issue #20212: Lots of fixes to currency related issues.