Fix array overread in quant matrix initialization
Caused miscompilations in gcc 4.8.