Fix qualifier parsing and add tests
- Quote/unquote path
- Fix line parsing and serializing to properly handle None
- Fix error raised by check_visit/check_anchor
- Escape origin qualifier
Depends on !262 (closed).
Migrated from D5127 (view on Phabricator)