Added support for inverted sections and arrays. Fixes #14

As discovered in #14, we are being inconsistent with inverted sections and arrays. In this PR:

- Add tests against inverted sections and arrays
- Add support for considering empty arrays to be falsy