A Unified Account of General Learning Mechanisms and Theory‐of‐Mind Development