remove duplicate bounds comparison
add tests

Covered:
* check that new ranges code behaves like code in ranges package
fix ranges not being merged properly
move profiles to Text.StringPrep.Profiles