Copy query parameters in a parameterized query

This allows batched statements to reuse parameters.
Merge pull request #24 from maginatics/copy-query-parameters

Copy query parameters in a parameterized query