Fixed error when pickling Hash object due to internal struct