AlertedWeakSet: minor updates.
* Fixed grammar mistake in docstring.
* Idiomatic 'callable' check on callback function.
CookiesMiddleware: idiomatic contains check on autoclose_sessions.
CookieMiddleware tests: added a new check on autoclose_sessions.