Fixes to the parsedic script for handling group range.

This fix is related to creating private dictionaries from the
DCMTK private.dic file.