luatools: binary data output-stream support