Fix variable definitions in the array test harness