Add URL path equality and prefix comparison

Cookies need to compare URL paths, both for equality and for whether one path contains another. Comparing serializations is not great: an opaque path can serialize identically to a list of URL path segments, and one path's
serialization can be a prefix of another's without covering whole segments.

Also let the URL path serializer take a URL path and record that the URL path segments in a list never contain U+002F (/), which is what makes the prefix comparison meaningful.

Tests: https://github.com/web-platform-tests/wpt/pull/62165

Closes #814.