Adding the JSON_NUMERIC_CHECK flag in __toJson so that numberic strings are properly converted to numbers.