Fixed crash bugs. More deserialisation stuff.

'make test' compiles, then runs the game with GDB so we can detect
errors at their first occurence.
Entities and components and audiosources no longer crash the engine if
you remove them while iterating over their lists.