Uniform inference in nonparametric predictive regression, and a unified limit theory for spatial density estimation