Merge pull request #118 from dtgriscom/master

Added json_array_foreach(), parallelling json_object_foreach()
Don't shadow the stdlib function index() with arg names

Fixes #119.
Added missing rv check - caught by clang
Merge pull request #121 from jjwchoy/master

Added missing return valua check in test