Nonparametric Inference for Counterfactual Means: Bias-correction, Confidence Sets, and Weak IV