Reorganize Cookie constructor parameters order, close #478