Fix/3.maintenance/portable bytearray

Fixes issue #1096