Fix `Session.equals` and `Session.setDefault`