I am trying to use new go driver but I found with regarding BSON decoding. I can reproduce the issue with the file in the attachment. The problem is with the defined types. Following EnumType has no problem with encoding but can't decode the original value.
type EnumType int32
const EnumType_A EnumType = 1
type Dummy struct