Bug fix for kiftohex.sh to handle more general cases

This makes it deal with multiple glyphs per class and non-continuous
glyph range, both of which weren't an issue in this particular project.