Fix sorting of LiftRanges

Call FixBadTextElements which changes element entries
from this <element name='text'>blah blah</element>
to this <text>blah blah</text>.