Gravar-mail: Explaining Compound Generalization in Associative and Causal Learning Through Rational Principles of Dimensional Generalization