=htc #15560 close entity data stream eagerly + add more tests
=htc #15686 fix off-by-one error when creating strict entities for small payloads