copy params into a new object

fixes #119

Probably shouldn't be using the undocumented `util._extend`, but wasn't sure what the recommended alternative is- any pointers/suggestions?