Require every element along a JSON key path to be a NSDictionary

Fixes #274