Better handling of corrupt/invalid BSON PYTHON-571
Fix length check in python 3 PYTHON-571
Fix signed / unsigned comparison warnings