Fixed JAVA-722 bug, added test cases
Fixed code style, removed Deque class as Java 6 alien
Changed names of variables to be more descriptive
Merge pull request #96 from mutyonok/master

JAVA-722: Errors when DBRef's $id is Object instead of simple value