Fixed occasional failures in TJWSServletServerTest.testFile(), TestStats...

These issues are reported on JIRA as:

RESTEASY-859, RESTEASY-860, RESTEASY-861

ALSO fixed an error that occurred in TJWSServletServerTest.testFile() in pull request #320 to master branch.

Last minute refactoring didn't pay off, Arrays.asList returns unmodifiable collection, using 
new ArrayList(Arrays.asList(types)) solves this.

I'm truly sorry for caused troubles.