Bayesian distributional latent-variable models