When creating a package, compute the flatsize if it is not specified
in the manifest.  Note that there is just a short leap from here to
allowing the sizes of individual files to be recorded in the manifest,
but that requires an API change.
Merge pull request #543 from dag-erling/flatsize

When creating a package, compute the flatsize if it is not specified in the manifest.