statically initialize R_weak_refs, since it's referenced at startup