Add test case and bug fix for double serialization of delete_by_query queries.
Merge branch 'upstream' of https://github.com/Locu/pyes into upstream