Improve the error messages for assertions on array of bytes