Add TheoryState objects to each Theory (#4920)