Fixes a bug where batched API calls bleed params.

When API calls are batched, the parameters bleed into other other calls. This fixes the bug by ensuring that each call gets its own parameters object.