Fixed #19829 -- Fixed index lookups for NumPy arrays in templates.
Merge pull request #728 from jphalip/ticket-19829

Fixed #19829 -- Fixed index lookups for NumPy arrays in templates.