support datetype unpickling