Validate that `contexts` and `paths` settings are arrays before execution

Fixes #473