Fix for reading categorical pickles.