Const-correct loadConfigValue