array bug fix

array bug fix for two method...
Merge pull request #1 from chpdesign/patch-1

array bug fix in addCookie and removeCookie methods