Fix 0/'0' not being patched properly.

Use strict equality when comparing scalar values. We don't want to use
strict equality on object types as DateTime instances will *always* be
different, as will arrays holding associated entities.

Refs #4307
Merge pull request #4329 from cakephp/issue-4307

Fix 0/'0' not being patched properly.