Tested and fixed up to MongoEngine 0.8.1.
Test on multiple versions.