TNamedValueArray::Shrink

Compacts the memory for the elements based on what was actually used