Do not use wildcard matching if VR doesn't allow it.
Do not use wildcard matching if VR doesn't allow it.

This should accelerate the matching of a long list of UIDs, because it
means that simple string comparisons can replace the wildcard search.
Also, string comparison is done back-to-front, because the front is likely
to be a prefix and therefore the same for most of the UIDs.

dgobbi/vtk-dicom,dgobbi/vtk-dicom,dgobbi/vtk-dicom