added helper methods to Unit for Agent

Agent is the AI's control abstraction. Unit has an explicit constructor
for AgentStat that warns of object slicing as well as a
createAgentDefinition method