uri::resolve: Fixed issue in remove_dot_segments. More tests.