Hopefully final fix for uri precedence order.
Fixed print representation of uris