Update to Esri JS API 3.9; minor bugfixes