Fix cash_in() to behave properly in locales where frac_digits is zero, eg Japan.  Report and fix by Itagaki Takahiro.  Also fix CASHDEBUG printout format for branches with 64-bit money type, and some minor comment cleanup.
Fix cash_in() to behave properly in locales where frac_digits is zero,
eg Japan.  Report and fix by Itagaki Takahiro.  Also fix CASHDEBUG printout
format for branches with 64-bit money type, and some minor comment cleanup.

Back-patch to 7.4, because it's broken all the way back.

adam8157/gpdb,lintzc/gpdb,xuegang/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,janebeckman/gpdb,jmcatamney/gpdb,zaksoup/gpdb,ashwinstar/gpdb,xinzweb/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,rvs/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,rvs/gpdb,zaksoup/gpdb,adam8157/gpdb,lintzc/gpdb,Chibin/gpdb,janebeckman/gpdb,50wu/gpdb,edespino/gpdb,CraigHarris/gpdb,janebeckman/gpdb,xuegang/gpdb,edespino/gpdb,lisakowen/gpdb,xuegang/gpdb,edespino/gpdb,edespino/gpdb,Quikling/gpdb,Quikling/gpdb,greenplum-db/gpdb,Quikling/gpdb,lisakowen/gpdb,royc1/gpdb,cjcjameson/gpdb,xuegang/gpdb,0x0FFF/gpdb,ahachete/gpdb,rvs/gpdb,cjcjameson/gpdb,lintzc/gpdb,rvs/gpdb,royc1/gpdb,0x0FFF/gpdb,50wu/gpdb,yuanzhao/gpdb,xinzweb/gpdb,xuegang/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,edespino/gpdb,greenplum-db/gpdb,royc1/gpdb,50wu/gpdb,lisakowen/gpdb,edespino/gpdb,cjcjameson/gpdb,CraigHarris/gpdb,50wu/gpdb,rvs/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,Chibin/gpdb,janebeckman/gpdb,xinzweb/gpdb,royc1/gpdb,xinzweb/gpdb,Quikling/gpdb,rvs/gpdb,ahachete/gpdb,Quikling/gpdb,chrishajas/gpdb,CraigHarris/gpdb,royc1/gpdb,greenplum-db/gpdb,lintzc/gpdb,lintzc/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,CraigHarris/gpdb,royc1/gpdb,chrishajas/gpdb,0x0FFF/gpdb,lisakowen/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,Chibin/gpdb,Chibin/gpdb,cjcjameson/gpdb,Quikling/gpdb,lisakowen/gpdb,ashwinstar/gpdb,chrishajas/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,chrishajas/gpdb,kaknikhil/gpdb,chrishajas/gpdb,zaksoup/gpdb,Quikling/gpdb,xuegang/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,chrishajas/gpdb,kaknikhil/gpdb,lisakowen/gpdb,royc1/gpdb,ahachete/gpdb,adam8157/gpdb,Chibin/gpdb,chrishajas/gpdb,lisakowen/gpdb,janebeckman/gpdb,CraigHarris/gpdb,jmcatamney/gpdb,rvs/gpdb,xuegang/gpdb,yuanzhao/gpdb,chrishajas/gpdb,ashwinstar/gpdb,Chibin/gpdb,edespino/gpdb,lintzc/gpdb,kaknikhil/gpdb,Chibin/gpdb,royc1/gpdb,xinzweb/gpdb,ahachete/gpdb,50wu/gpdb,ashwinstar/gpdb,lintzc/gpdb,ahachete/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,rvs/gpdb,ahachete/gpdb,kaknikhil/gpdb,janebeckman/gpdb,rvs/gpdb,Chibin/gpdb,zaksoup/gpdb,edespino/gpdb,janebeckman/gpdb,adam8157/gpdb,adam8157/gpdb,janebeckman/gpdb,50wu/gpdb,zaksoup/gpdb,50wu/gpdb,janebeckman/gpdb,kaknikhil/gpdb,ahachete/gpdb,jmcatamney/gpdb,janebeckman/gpdb,cjcjameson/gpdb,xinzweb/gpdb,greenplum-db/gpdb,50wu/gpdb,adam8157/gpdb,rvs/gpdb,xinzweb/gpdb,lisakowen/gpdb,zaksoup/gpdb,zaksoup/gpdb,xuegang/gpdb,cjcjameson/gpdb,Quikling/gpdb,CraigHarris/gpdb,adam8157/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,CraigHarris/gpdb,lintzc/gpdb,zaksoup/gpdb,greenplum-db/gpdb,edespino/gpdb,kaknikhil/gpdb,Chibin/gpdb,Chibin/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,Quikling/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,adam8157/gpdb,xinzweb/gpdb,edespino/gpdb,ahachete/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,Quikling/gpdb,jmcatamney/gpdb,lintzc/gpdb,xuegang/gpdb,yuanzhao/gpdb