ConfigValue: remove redundant as_pin and as_pwm methods