Optimize creation of boxed primitives

The `valueOf` constructors can reuse cached values.