JERSEY-2299: RequestScoped Factory.dispose is not called

 - fix + test

Change-Id: I1f781326353895a34592bbc6e78f1b8b0f6af5d0
Signed-off-by: Michal Gajdos <michal.gajdos@oracle.com>
Merge "JERSEY-2299: RequestScoped Factory.dispose is not called"