Avoid allocating zero length arrays in CodeRef.
Presize arrays when deserializing.
Allow min size of VMArrayInstance to be 4 elems.