Fix assoc array handling in config page

This issue likely affected integer handling in general.  The fix tackles the following:

- Detect and handle properly numeric strings.
- Don't do constant replacements when the constants are enclosed in quotation marks.
- Variable name fix.

Fixes #17533