mark ModuleInfo as read-only data
Merge pull request #3551 from MartinNowak/immutableModuleInfo

mark ModuleInfo as read-only data