Make CaretManager and SessionView 100% typed.