clone the parameter map when creating list of required parameters

This change allows mustache templates to use all properties describing required parameters when generating code for operations. This way parameter properties such as "description", "swaggerDataType" and others remain available when the required parameters list is used to drive the code generation.