Add the missing gates and generator in the serializer that were added with the PublicKeyOf operation. Add a test for CircuitData serialization+deserialization to avoid these kind of bugs in the future.