Fix sorting of LiftRanges

Call FixBadTextElements which changes element entries
from this <element name='text'>blah blah</element>
to this <text>blah blah</text>.
Merge pull request #19 from mccarthyrb/master

Fix sorting of LiftRanges