Fix nested array checks.

Fixes #23.