Fix for #2247 | Use correct column when calculating next sequence value

See #2247 for more details.
Parse cookie values "{}" & "[]" as array
Add test case
Merge pull request #2250 from luissquall/fix-cookie-explode

Parse cookie values "{}" & "[]" as array
Correct spelling of retrieve
Merge pull request #2252 from bcrowe/hotfix-retrieve

Correct spelling of retrieve
Correctly identifier quote column names before adding them to queries.

Closes #2248
Merge branch 'postgres-sequence'

Merge changes for pull request #2248
Merge branch 'master' into 2.5