apply BSON encoding hooks to query objects and replace arrays with BasicDBList
Merge pull request #41 from pnml/master

apply BSON encoding hooks to query objects and replace arrays with BasicDBList