Fixed ByteArray not resetting position upon clear

It's quite a shame to see this being overlooked for so long.