Flatten input arrays for nested array validation.

This just makes a bit more sense to me, technically it should pass all the tests without having to do much of anything.