Replace CScriptValRooted with JS::Heap<T> and custom tracer for CNetClient.