What underlies rapid learning and systematic generalization in humans