Fixed typo bug when pickling type name.