Avoid signed overflow and use size_t in bytevectors.c.