Found and fixed it. In the BinaryBuffer that accepted an Integer it was to supposed to allocate an array with an amount of elements based on the value passed, instead it allocated a single byte initialized to the value passed, ie. [] was ().