Fix for gmttime and decimal data types.
Fix VC specific problem for map iterator.
various minor fixes