[[ Bug 13154 ]] Make arrayDecode a little more robust in the face of random data.
Merge branch 'bugfix-13154' into develop