Implement to_metadata() and from_metadata() for VsCGpm.
Implement to_metadata() and from_metadata() for VsCGpm.

Problem: it appears that all objects in the source file that are
in the inference language are not serialized! This problem is a big
one, if it is true.

probcomp/cgpm,probcomp/cgpm