fix for extraneous typedefs and reference to AgentListIterator as friend