Fix a bug in Deserializer related to packages

The Deserializer wasn't caching the modules with regard to their require.