Expose array index to conditionals.

Makes conditionals work inside an array. Fixes #35