Fixed adjust_bytearray.

Now works also with struct and arrays.