Test that repr and str are the same for a BSONDocument.
Minor test refactoring.
BSONDocument key iterator.