#5: Added tests of the raw_split().
#4: Refactored _raw_split().
#4, #10: Added docstrings for _raw_split(), _repair_tags().

_repair_tags() refactored and fixed (there was hidden bug).
#5: Added tests for _repair_tags().