Pass cookie through programmatic API #41

Just make it always be an array.