Compositional Generalization in Unsupervised Compositional Representation Learning: A Study on Disentanglement and Emergent Language