make main callable from outside for testing
use binary.Varint instead of binary.ReadVarint in UnmarshalDeltaNodes
marshal length as unsigned varint
use binary.Varint instead of binary.ReadVarint in UnmarshalIdRefsBunch