Make ImageSpec::get_float_attribute correctly convert many integer types.