Fix issue with DocumentNotFoundException not handling non-scalar values correctly.
Fixes #446
Merge pull request #785 from doctrine/fix/gh446

Fix issue with DocumentNotFoundException not handling non-scalar values ...