Add __copy__, __deepcopy__, __getstate__, and __setstate__ methods to gp and kernels