RESTEASY-1047: TypeVar resolution
RESTEASY-1047: unit test
Merge pull request #487 from atzoum/RESTEASY-1047

Resteasy 1047