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.
@Stephan202 fine to only make this fix for the tests you added. I'll try to find time to commit a change to fix the others.