Copy function params

Clone function params before adding new properties.