Use reference when using CONFIG_VECTOR in foreach cycle