codegen wibbles
fix handling of fold with zero sized shape tail

AccelerateHS/accelerate#124