Fix callback types for cordova.exec .