Fixed a bug caused by string values in decimals.

Added a decimal validation converting string values to integers before
propagating.