Repository: stable-diffusion-webui
Issue: [Bug]: paste_field_names do not paste if slider label same as param name and ui-config.json has wrong number type for slider
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Pasted field param/pnginfo will not apply to an included value to any slider under the following condition:

1. The slider's label is the same string as the custom param
2. And the stored values for that slider in `ui-config.json` are the wrong number type (int vs float)

This situation is most likely to be caused when an extension/script defines a slider with some of the slider params with ints when the the slider is configured for floats (ie step=some float). I am working on a PR for an extension to add paste support, but said added paste support will not work due to the mentioned condition of `ui-config.json` from the previous version.

The main issue here is any user that has previously used the extension will still have paste support broken on the slider without manual intervention on their part. Altering the param name is not an option. Changing the label of the slider would work but is not ideal though I will go that route if this behavior is deemed a caveat.

### Steps to reproduce the problem

1. Install `https://github.com/Kadah/CFG_Rescale_webui` main branch
2. Reload webui to trigger `ui-config.json` to update with controls from extension
3. Stop webui
4. Switch extension to paste_fix branch
5. Restart webui
6. Paste test pnginfo block and note "CFG Rescale" does not get value applied, but "DDIM Trailing" does.
```
digital painting of a smug anthro feline pirate standing outside at a tropical harbor on a clutter dock
Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 7, Seed: 660634805, Size: 768x1088, Model hash: ff9e37054d, Model: polyfur-lion-e90-terminal-snr-vpred-e39, DDIM Trailing: True, CFG Rescale: 0.8, Version: v1.6.0-RC-1-gc8c73eae
```

Workaround: 
1. Preform one of the following:
- Reset `ui-config.json`
- Delete all entries in `ui-config.json` for `customscript/CFGRescale.py/*`
- Edit all `customscript/CFGRescale.py/*/CFG Rescale/*` values to float in `ui-config.json`
- Edit the "CFG Rescale" slider's label to anything else
- Change the slider to a number control
2. Reload webui and try paste again
3. Pasting should now apply "CFG Rescale" as expected.

### What should have happened?

Pasted values should apply as expected despite inconsistent/outdated value types in `ui-config.json`

### Version or Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/c8c73eae5934ac4dec717d40d624fed613cbd19a

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

Linux

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### Cross attention optimization

Automatic

### What browsers do you use to access the UI ?

Mozilla Firefox

### Command Line Arguments

```Shell
No
```


### List of extensions

https://github.com/Kadah/CFG_Rescale_webui/ and then with the paste_fix branch

### Console logs

```Shell
################################################################

################################################################
Running on kadah user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.10.11 (main, Apr 20 2023, 19:02:41) [GCC 11.2.0]
Version: v1.6.0-RC-1-gc8c73eae
Commit hash: c8c73eae5934ac4dec717d40d624fed613cbd19a
Launching Web UI with arguments: 
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Loading weights [ff9e37054d] from /ai/stable-diffusion-webui/stable-diffusion-webui_stock/models/Stable-diffusion/polyfur-lion-e90-terminal-snr-vpred-e39.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: /ai/stable-diffusion-webui/stable-diffusion-webui_stock/models/Stable-diffusion/polyfur-lion-e90-terminal-snr-vpred-e39.yaml
Startup time: 4.7s (prepare environment: 1.0s, import torch: 1.5s, import gradio: 0.5s, setup paths: 0.4s, initialize shared: 0.1s, other imports: 0.3s, load scripts: 0.3s, create ui: 0.4s, gradio launch: 0.2s).
Applying attention optimization: Doggettx... done.
Model loaded in 2.3s (load weights from disk: 0.5s, create model: 0.5s, apply weights to model: 1.1s).
```


### Additional information

Here is an sample block from `ui-config.json` that will cause the issue. Note values are int while a float step is being used.
```
    "customscript/CFGRescale.py/txt2img/CFG Rescale/visible": true,
    "customscript/CFGRescale.py/txt2img/CFG Rescale/value": 0,
    "customscript/CFGRescale.py/txt2img/CFG Rescale/minimum": 0,
    "customscript/CFGRescale.py/txt2img/CFG Rescale/maximum": 1,
    "customscript/CFGRescale.py/txt2img/CFG Rescale/step": 0.01,
    "customscript/CFGRescale.py/txt2img/DDIM Trailing/visible": true,
    "customscript/CFGRescale.py/txt2img/DDIM Trailing/value": false,
    "customscript/CFGRescale.py/img2img/CFG Rescale/visible": true,
    "customscript/CFGRescale.py/img2img/CFG Rescale/value": 0,
    "customscript/CFGRescale.py/img2img/CFG Rescale/minimum": 0,
    "customscript/CFGRescale.py/img2img/CFG Rescale/maximum": 1,
    "customscript/CFGRescale.py/img2img/CFG Rescale/step": 0.01,
    "customscript/CFGRescale.py/img2img/DDIM Trailing/visible": true,
    "customscript/CFGRescale.py/img2img/DDIM Trailing/value": false
```