Improved support for working with in-memory packages. Various fixes.