Implementing weak references for CoralVM-C