added flag selectTypeVersionsByEnvironment to VersionedModuleSelector to
decide whether types to generate contracts for are selected based on the
modules state or the minimal state supporting the environment