[subset] shrink the serialize buffer when pruning empty offsets in ChainContextFormat2. Currently the code reduces the array length, but does not trim back the space allocated in the serializer for those empty offsets.