Fix and test for JERSEY-2556 - issue with JerseyUriBuilder.path and generic methods