Add `GC.getWeakRefTarget` function.