clone the parameter map when creating list of required parameters
Merge pull request #137 from radonsky/clone_required_parameters

clone the parameter map when creating list of required parameters