Polishing

Issue: SPR-11262
ResourceHttpRequestHandler explicitly closes a Resource's InputStream

Issue: SPR-11644
(cherry picked from commit 3a96f16)
Revised ByteArrayOutputStream handling in MarshallingView and co

Issue: SPR-11646
(cherry picked from commit 8006696)