config/chain: respect ranges when creating variables
config/chain: respect ranges when creating variables

When creating variables that has their origin in a config-chain, we need to
make sure that their lower and upperbound is honored.

fixes #17431

Signed-off-by: Thomas Guillem <5f50a84c1fa3bcff146405017f36aec1a10a9e38@gllm.fr>

xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc