convert some prims to Scala

the motivation is that I want to eliminate the use of Java collections
in api.Let, in a commit coming soon
code improvement: make Let use Scala collection not Java
fix recent regression: ConcurrentModificationExceptions in agent.Realloc

I was only getting the actual exceptions on the scala-2.10 branch, but
the old code seems dodgy to me regardless of Scala version, so, changing
it on master
update benchmark dumps
bin/issues.scala: 2.9.2 version of dispatch reboot beta2 now available
rename AgentSet.type method to AgentSet.kind

since type is a Scala keyword, and since I want to introduce a new
AgentKind type and not have it conflict with Syntax.AgentType
introduce AgentKind type and api.Agent.kind method

so we can phase out use of Class to track agent kinds
minor cleanup in HubNetManager
big refactoring: replace Class[_ <: Agent] with AgentKind
Merge remote-tracking branch 'origin/master' into core

Conflicts:
	bin/issues.scala
	extensions/gis
	extensions/network
	src/main/org/nlogo/agent/Importer.scala
	src/main/org/nlogo/agent/InRadiusOrCone3D.java
	src/main/org/nlogo/agent/LinkStamp3D.scala
	src/main/org/nlogo/agent/Torus3D.java
	src/main/org/nlogo/agent/TurtleStamp3D.scala
	src/main/org/nlogo/agent/World3D.java
	src/main/org/nlogo/app/AgentMonitor.scala
	src/main/org/nlogo/app/AgentMonitorEditor.scala
	src/main/org/nlogo/app/AgentMonitorManager.scala
	src/main/org/nlogo/app/AgentMonitorWindow.scala
	src/main/org/nlogo/app/App.scala
	src/main/org/nlogo/app/ProceduresTab.scala
	src/main/org/nlogo/app/ToolsMenu.scala
	src/main/org/nlogo/compiler/ConstantParser.scala
	src/main/org/nlogo/headless/HeadlessWorkspace.scala
	src/main/org/nlogo/hubnet/mirroring/LinkData.java
	src/main/org/nlogo/hubnet/mirroring/TurtleData.java
	src/main/org/nlogo/hubnet/server/HubNetManager.scala
	src/main/org/nlogo/lite/AppletPanel.scala
	src/main/org/nlogo/lite/LiteWorkspace.scala
	src/main/org/nlogo/lite/ProceduresLite.scala
	src/main/org/nlogo/prim/hubnet/_hubnetsendfollow.java
	src/main/org/nlogo/prim/hubnet/_hubnetsendoverride.scala
	src/main/org/nlogo/prim/hubnet/_hubnetsendwatch.java
	src/main/org/nlogo/prim/hubnet/primitives.scala
	src/main/org/nlogo/prim/threed/_breedat.scala
	src/main/org/nlogo/prim/threed/_turtlesat.scala
	src/main/org/nlogo/sdm/AggregateManagerLite.scala
	src/main/org/nlogo/sdm/gui/GUIAggregateManager.scala
	src/main/org/nlogo/window/ExternalFileInterface.java
	src/main/org/nlogo/window/GUIWorkspace.java
	src/test/org/nlogo/headless/AbstractTestLanguage.scala
	src/test/org/nlogo/headless/TestLanguage.scala
	src/test/org/nlogo/workspace/DummyAbstractWorkspace.scala
Merge remote-tracking branch 'origin/core' into headless

Conflicts:
	src/main/org/nlogo/app/App.scala
	src/main/org/nlogo/app/CommandCenter.scala
	src/main/org/nlogo/app/CommandLine.java
	src/main/org/nlogo/app/HistoryPrompt.scala
	src/main/org/nlogo/app/InterfacePanel.java
	src/main/org/nlogo/app/LinePrompt.scala
	src/main/org/nlogo/app/ProceduresTab.scala
	src/main/org/nlogo/prim/gui/_inspect.scala
	src/main/org/nlogo/prim/gui/_inspectwithradius.scala
	src/main/org/nlogo/window/ButtonWidget.scala
	src/main/org/nlogo/window/GUIWorkspace.java
	src/main/org/nlogo/window/JobWidget.java
	src/main/org/nlogo/window/MonitorWidget.java
	src/main/org/nlogo/window/NetLogoListenerManager.java
	src/main/org/nlogo/window/View.java