XML, BSON size-wise dump improvements