Fix for #803: make clearer *which* nested arrays have unequal length.

This is an implementation of the suggestion made in #803. Please note that the two new unit tests may make obsolete part of (but certainly not all of) PR #804.
Please add a comment here: `// array lengths differed`