Uniform and distribution-free inference with general autoregressive processes