iRAT: Improved Retrieval-Augmented Thinking for Context-Aware Replanning-Based Reasoning | Synapse