added serialization for collide modules and BaseModule.cs