Fix https://bugs.dojotoolkit.org/ticket/18043 by changing [array].indexOf calls into dojo/_base/array::indexOf calls.