squash! gs: Test that input arrays can be accessed dynamically.

v2: Use a slightly more complex calculation that allows each vertex to
have a different value of "index" (suggested by Chad Versace
<chad.versace@linux.intel.com>).