Allow initialization using bson dumps.