Add constness to some containers and iterators in quantization
tmp