Added ModuleManager sanity checks

This would prevent a bug we had over at RemoteTech, where ModuleManager issues or conflicting 3rd-party patches could cause key modules to get added to parts twice.