fix for exception related to zero rows in 2D arrays
WIP fix for binary bytes calculations