Fix return types of getJSONObject and optJSONObject in CordovaArgs