Refine numeric types (Int/Float)

Based on simple javascript numeric inspection, refine the scala type to be Int or Float.