fixed deletion of a key from an object passed by reference

Request.buildUri() was mangling the param object, which is passed by
reference from application code.  Duplicated the params object before
mangling to solve the problem.