Check if the item is an array.
Fiexed error in CakeSession that would call start() in an infinite loop
when the session is marked as invalid
Ensuring session is configured before trying to destory it
Fixed failing test
Merge pull request #2449 from cakephp/fix-session-cyclic-error

Fixed error in CakeSession that would call start() in an infinite loop
Add tests for #2433
Merge branch 'glorand-master'

Fix Hash::extract() operating on non-array data.

Closes #2433