fix type-inferencing on ArrayElem
fix embarassing mistake in reduce kernel generation
check reduce output on cpu
fix style in generate_datatype