I had been stuck trying to access elements in an byte array. I was using log.info to understand the array elements the code log.info "xarray $xarray" (see below) would log the whole array then the  as seemingly another log output.
Further below I found I could access my array element using an intermediate variable.
The Question is:
Is there a special syntax for using array[i] in log.info or is just not a valid operation?
log.info "length $xarray.length" log.info "xarray $xarray"
Results in :
log.info "length $xarray.length" byte atest = xarray log.info "xarray $atest"
Works correctly, results in: