src/utils_match.[ch]: Improved the handling of gauge values.