[master] Changes for https://java.net/jira/browse/GRIZZLY-1653 (ContentType.getByteArray() generates unnecessary garbage).

(cherry picked from commit 60df0d5a5b4e2432516f2763bfcf9273b3bb25fa)