Show cfg->variable instead of cfg->value when complaining about wrong type.