not important, but instead of messing with IFS, why not a regex...

    for p in ${conf_valid_gear_sizes//,/ }; do

similar for the rest... especially when you have multiple delimiters