Port old contructor of YAML's integer type.