BytesReference usage to properly work when hasArray is not available
fix spelling in comment, + remove overcautious assert