Fixed copying required/optional params in collect_action_params.