Fix propagation of index type
alloca is not necessarily alligned on windows