Correction of the AgentType in AgentSpawned Event

The class passes to the agentType attributes was the class of the called
instead of the class of the newly spawned agent. This commit corrects
this error.

Closes #22