On the uniform asymptotic validity of subsampling and the bootstrap