@Override
    public SerializationContext withBindings(Map<String, String> bindings) {
        return new SerializationContext(getFunctions(), bindings, typeContext, this.serializedFunctions);
    }
Adds the serialization of the return type of a function
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/SerializationContext.java