Merge pull request #121 from tipok/master

Added Database.dereference()
Proper filtering of array elements in $pull command
add test for complex $pull queries
Merge pull request #122 from plocharz-9livesdata/master

Proper filtering of array elements in $pull command
Acknowledgements