Add == and hashCode to UriTemplate