fix updating of the identity map when moving documents
Merge pull request #291 from doctrine/proxy_move_by_assignment

highlight bug that causes proxy objects to lost when moving by assingment