Add ClassDeclTopType + subclasses and JSON deserializer.