Serialize the numpy random state used to create Gaussian random fields