Make cookie objects plain objects