Revert "Continued replacing native arrays with GtArrays"

This reverts commit a83d85ccb10f05d7eae1e33e33982394912743a2.
Revert "Replacing native array with GtArray"

This reverts commit 5daf591945231bed0a43832c5508d2a419a79527.