Fix bug in re-allocating array of data elements in item.

This bug has been around for a week, it appeared in the
patch "Allocate an array of data elements for vtkDICOMItem".