It looks like the proposal of Niklas is not present in 1.7.x version as it still looking for dimensionedScalar Lookups.

When I run pisoFoam it is not finding the kappa constant even if I put it in the dictionary, I don't know yet if it is linked. I will try to recompile the code with Niklas proposal. I'm not sure, I'm a bit lost among all those models and C code...