Avoid StackOverflow's in JsConfig.SerializeFn/DeserializeFns