#3520 - fixing putLongParts in ByteStringBuilder and adding tests

Backport to 2.2?