Switching EqProof to use shared_ptr everywhere. (#1217)