Change getTargetNodeName() to produce compiler warnings for missing cases, fix them