Adding ToArrayInterface to CookieJar

Addresses #686