use WeakReference so that CGNode.getIR() doesn't hit the cache too often

regarding wala/WALA#9

does not fast-forward but should apply cleanly