lib serialization: `deserialize` accepts the name of the static type as argument