SERVER-14586 add toBSON() methods to ReplicaSetConfig and MemberConfig classes