Misc fixes, array access update

Given a pointer to an array, array_ptr, the arrray elements can
now be accessed by array_ptr[i] as a shortcut for (*array_ptr)[i].
Added test for new array access style
Changed test script to perl.
Changed test script to python