CSHARP-1066: Make all exceptions fully serializable.