Added more entity types; descriptive common error

Entity types:
- Entity
- Vehicle
- Weapon
- NPC
- Player
- NextBot

Now a proper descriptive error is thrown when attempting to serialize an
object of unknown type.