add test tool for converting byte oriented streams to compact arrays