Make TypeDescriptor serializable

Issue: SPR-10631