fix: length should be encoded in 4B. see #48

this fixes pickle for skyline, at least.