add methods for serialization to and deserialization from a string
split off init() method that allocates the colvarmodule from constructor
split off init() method from constructor; add support for LAMMPS restarts