DNN-5733 - marked more class as [Serializable] as a safeguard against serialization errors in the future.
Fixing Sebastian Leupold pull request (Commit hash: c53080fb13ccb7fcd47f2f2a4358f7d28c8dad2b) with a better fix in the base class code.