fixes #17510 inappropriate property iteration on array

https://bugs.dojotoolkit.org/ticket/17510