Avoid excessive box and unbox of primitives when using Object[] storage