Fix serialization of requests.
Implement __hash__.