Fix problem accessing array-indexed fields.

This change fixes accessing fields of the form [list][0][key], where
[list] is an array, [0] is the numeric index into the array, and [key]
is the hash key into one of the items in the array.
Merge pull request #1216 from jdve/fix-array-accessor

Fix problem accessing array-indexed fields.