Upgraded from 3.6 to 3.7 of the ArcGIS JS API.