Description
Currently when a pointer to a value, such as *objectid.ObjectID is encoded the value of the pointer is taken without first checking to see if the pointer is nil. Add a check to see if the pointer is nil and if it is, write a BSON null for the value instead. This should be done for all of the default encoders and primitive encoders.