AGALConverter - access by index should use int( ) , also fixed a missing ")" in the generated code.