for loop collapsing simplicity, kernel loops now always use 64-bit intergers