Serialize ClassType as its qualname
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/30058
Test Plan: Imported from OSS
Differential Revision: D18584269
Pulled By: jamesr66a
fbshipit-source-id: 5f1d0142bd7cd94eecbd2ed9250a0de47639040b