Added the serialisation constructors to the layer Classes