Test exposing problem converting double to decimal.
Fix for problem.
Merge branch 'double-to-decimal-error'