Nonparametric regression models with and without measurement error in the covariates, for univariate and vector responses: a Bayesian approach