added GetIntegerDef() function and TDocVariantData.GetAsInteger/GetAsRawUTF8 methods
- also fix an issue when processing a JSON array in GetVariantFromJSON()