Fix memory leak and more granular reporting, with endian-neutral size-serialization