Rate-Regularization and Generalization in VAEs