Adding checking for the sections
At some point I should also make sure to check the _contents_ of
any arrays -- currently it's only checking that arrays are indeed
arrays, and not that they also contain the right types.