=htc #15560 close entity data stream eagerly + add more tests
=htc #15686 fix off-by-one error when creating strict entities for small payloads
Merge pull request #15580 from spray/w/15560-fix-entity-stream-termination

=htc #15560 close entity data stream eagerly + more tests + fix for #15686