Add platform attribute to cartridge serialization.

Platform attribute was not being serialized to MongoDB.