pack-objects: clamp negative window size to 0