Cookies should always be an array

Fixes #146.