This actually isn't an optimization; `Double.valueOf(double d)` just calls 'new Double(d)'

Let's just remove this change. Since this class is deprecated, I want to minimize changes to it wherever possible.