Bugfixes to character-range and character-ranges.