vector_ref tobytes are const