Complete review of the java.lang.* library

You must replace `referent` with `null` when calling the constructor of `Reference`. Otherwise you keep a reference to it, which you may not.