Add crude toString for Uri
Add tests for resolve_ref() and toString()
Optimize toString