Fix bugs with array indexing, array detection
Check if doc.get returns nil.
Rename argument
Clean up unnecessary scope
Merge pull request #4 from launchdarkly/master

Fix isArray, eliminate restrictions in paths containing array indices