Extend the returned type for AgentContext#getSpaces.