do not mutate incoming params object

I stumbled over this when I tried to reuse a `{index: "myIndex"}` object and the second request failed because the index was missing.

There are some `delete` calls in `client_action.js` which maybe should be replaced by building new objects, but for now this should do.