Fix for reducing length in dojox/mvc/StatefulArray, fixes #17325 thanks asudoh.