Added BytesUtil to help convert objects to byte arrays and back.