#11420: make test suite pass with -B/DONTWRITEBYTECODE set.  Initial patch by Thomas Wouters.
Issue #17418: specify that buffer sizes are bytes.
Merge heads.