parse
Parses a pointer into unescaped segments, or null when malformed (callers raise their own typed identity — a template bug, not absent data). A pointer must start with / and have at least one segment; escapes: ~1 → /, ~0 → ~, anything else after ~ is malformed.