Meta-Learning Transformers to Improve In-Context Generalization