[runtime] CaseClassSerializer correctly treated as stateful