[grid] BoundaryFunctor needs a grid instance to use non-deprecated iterators
[cmake] fix warning settings
[common] floatcmp: add forward for arithmetic types, add "ne"