Refactored BsonDouble and added unit tests.