FW-292. Fix.

switch isDagRoot/isBridge at compilation time