fixed serialization of OAuth2Request (to make up for BaseRequest not being serializable anymore)