Fix number conversions in ParseInt and ParseDecimal
Fix bugs and consolidate ParseInt and ParseDecimal to work with optional default parameters.