Changed DoubleFlag and IntegerFlag to take java.lang.Number objects in unmarshal().