Fix a myriad of serialization bugs. Add some spawn messages for certain entities.