This introduces a str-like type for each of these, which will allow returning a ref instead of the copied data from various methods in {Full,Bare}Jid. The use of a macro ensures that all types are declared consistently.
Jid now has typed with_resource and stringy with_resource_str Jid now has is_full, is_bare